Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APP-3018: Using varargs in constructor and setAttachment methods #196

Merged
merged 1 commit into from
Sep 3, 2020

Conversation

symphony-hong
Copy link
Contributor

No description provided.

@thibauult thibauult requested a review from ystxn September 2, 2020 13:26
Copy link
Contributor

@symphony-elias symphony-elias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -23,37 +24,25 @@ public OutboundMessage(String message, String data) {
this.data = data;
}

public OutboundMessage(String message, File[] attachment) {
public OutboundMessage(String message, File... attachment) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happen if we pass a null value here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have to cast it to File class, then the attachment array will contain only 1 null element.

Copy link
Member

@ystxn ystxn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@symphony-hong symphony-hong merged commit 24771c4 into finos:master Sep 3, 2020
@symphony-hong symphony-hong deleted the APP-3018 branch September 11, 2020 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants